﻿@model EdexApiClient.ITEM_COMPANY_MAP

<div class="modal hide" data-name="ITEMS_MAPPING">

    <div class="modal-header">
        <h3>Установить соответствие</h3>
    </div>

    <div class="modal-body">

        <form name="ITEMS_MAPPING" class="form-horizontal" method="post"> 
            <fieldset> 
                
                <input type="hidden" name="ITEM_GUID" value="@Model.ITEM_GUID">
                <input type="hidden" name="COMPANY_GUID" value="@Model.COMPANY_GUID">

                <div class="control-group"> 
                    <label class="control-label" for="COMPANY_NAME">Компания</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="COMPANY_NAME" value="@Model.COMPANY_NAME" readonly="readonly">
                    </div> 
                </div> 
                
                <div class="control-group"> 
                    <label class="control-label" for="ITEM_NAME">Наименование товара</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="ITEM_NAME" value="@Model.ITEM_NAME" readonly="readonly">
                    </div> 
                </div> 
                
                <div class="control-group">
                    <div class="controls">
                        <div class="input-append">
                            <input type="text" class="input-xlarge" name="ITEM-FILTER" value="" />
                            <button class="btn" type="button" data-action="ITEM-FILTER"><i class="icon-filter"></i></button>
                        </div>
                    </div>
                </div>

                <div class="control-group"> 
                    <label class="control-label" for="ITEM_GUID">Наименование товара</label>
                    <div class="controls">
                        <select 
                            class="input-xlarge"
                            data-value="GUID_RECORD"
                            name="MAP_ITEM_GUID">

                            @if (Model.MAP_ITEM_GUID.HasValue){
                                <option value="@Model.MAP_ITEM_GUID.Value">@Model.MAP_ITEM_NAME</option>
                            }
                        </select>
                    </div> 
                </div> 

            </fieldset>
        </form>
        
    </div>

    <div class="modal-footer">
        <a href="#" class="btn" data-dismiss="modal" data-action="ITEMS_MAPPING-CLOSE">Закрыть</a>
        <a href="#" class="btn btn-primary" data-action="ITEMS_MAPPING-SAVE">Сохранить</a>
    </div>
</div>
